/**
 * @author Fayçal INAJJARANE
 */
package com.appspot.finajjarane.framework.models;

import java.util.ArrayList;
import java.util.List;


public class JSONModelList<K> extends JSONModel {

	private List<K> data;

	public JSONModelList(){
		super();
	}

	public JSONModelList(int status, List<K> data){
		this.setStatus(status);
		this.setReturnedObject(data);
	}

	public JSONModelList(int status,K data){
		this.setStatus(status);
		List<K> list = new ArrayList<K>();
		list.add(data);
		this.setReturnedObject(list);
	}


	public void setReturnedObject(List<K> returnedObject) {
		this.data = returnedObject;
	}

	public List<K> getReturnedObject() {
		return data;
	}

}
